public class Sub extends Base{
    public int z ;
    public Sub(int x,int y,int z){
        super(x,y);
        this.z = z;
        //System.out.println("子类执行成功");
    }
    /*public int getZ(){
        return z;
    }*/
    public int calculate(){
        return super.x*super.y*this.z;
    }
}
